/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.web.index.vo.example;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * result
 *
 * @author zhangbi617
 * @date 23/05/2017
 */
public class RpcExampleResponseResult<T> {
    @ApiModelProperty(value = "返回值，0-成功、1-失败、2-部分成功", allowableValues = "0,1,2", example = "1", required = true)
    private int errorCode;

    @ApiModelProperty(value = "异常描述（可选)", example = "参数错误")
    private String errorMessage;

    @ApiModelProperty(value = "数据")
    private List<T> datas;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public List<T> getDatas() {
        return datas;
    }

    public void setDatas(List<T> datas) {
        this.datas = datas;
    }

    @Override
    public String toString() {
        return "RpcExampleResponseResult{" +
                "errorCode=" + errorCode +
                ", errorMessage='" + errorMessage + '\'' +
                ", datas=" + datas +
                '}';
    }
}
